<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'MyJsp.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<jsp:include page="/scripts/common/index.html"></jsp:include>
<jsp:include page="/scripts/dhtmlx/index.html"></jsp:include>
<jsp:include page="/scripts/jquery/index.html"></jsp:include>
<jsp:include page="/scripts/bootstrap/index.html"></jsp:include>
<link rel="stylesheet" href="${basepath }style/default.css">
</head>
<script type="text/javascript">
function init(){
	onloadGroup();
	initFile();
}
//上传
function onloadGroup(){
	if($("#guid").val()=="" || $("#guid").val()==null || $("#guid").val()=="undefined"){
	}
}
function initFile() {
	$.ajax({
		type : 'POST' ,
		url : 'page/item/publish/Publish/getfileID' ,
		data : {"map.groupId":$("#portraitCode").val()} ,
		dataType : "json" ,
		async : false ,
		cache : false ,
		jsonpCallback : "null" ,
		success : function(response, status, statusText) {
			//alert(JSON.stringify(response));
			if (response.status) {
				var obj = response.content;
				for ( var i in obj) {
					//$("#siderImg ul").append(""+ obj[i].fileName+ "<a href='page/common/File/doDownLoad?fileId="+ obj[i].fileId + "'> 下载</a><br/>");
					$("#siderImg").append("<img id='photoImage"+i+"' src='page/common/File/doDownLoad?fileId="+obj[i].fileId+"' style='width:120px;height:100px;' onclick='imgView($(this))'>");
				}
			}
		} ,
		error : function(obj) {
			//alert(response + ":" + status + ":" + statusText);
		} ,
		complete : function(obj) {
			//alert(response + ":" + status + ":" + statusText);
		}
	});
}
//查看大图
function imgView(_this) {
	var src = $(_this).attr("src");
	imgShow(src);
}
	function closeWindow() {
		parent.w1.close();
	}
	//回到顶部按钮添加
	$(document).ready(function () {
            GP.goup({
                trigger: 100,
                bottomOffset: 30,
                locationOffset: 30,
                titleAsText: true,
               containerColor: '#7e7f7e'
            },"Panel_");
    });
		
</script>
<style>
.form-group label {
	margin-top: 0px;
}
</style>

<body onload="init()" marginleft="0" margintop="0" style="margin: 0px;border: 0">
	<form class="form-horizontal MyForm" id="MyForm" name="MyForm" method="post" target="MyFrame" enctype="multipart/form-data">
	<input class=" form-control" name="map.guid" id="guid" value="${map.guid }" type="hidden" placeholder="" /> 
		<table class="contTable">
			<tr class="firstTr">
				<td>
					<button onclick="closeWindow()" class="btn btn-primary" type="button">
						<span class="glyphicon glyphicon-remove-sign" aria-hidden="true"></span>&nbsp;<span>关闭</span>
					</button>
				</td>
			</tr>
			<tr style="height:auto">
				<td valign="top">
					<div id="Panel_" style="width:100%;height:400px;overflow-y:auto;">
						<div class="blockBorder">
							<div class="titleS">
								<strong>基本信息</strong>
							</div>
							<div class="tableCont" style="width: 90%;">
								<div class="form-group">
									<label class="col-xs-2 control-label" for="staffNumCode">员工工号:</label>
									<div class="col-xs-3 ">${map.staffNumCode }</div>
									<div class="col-xs-1 "></div>
									<label class="col-xs-2 control-label" for="staffName">员工姓名:</label>
									<div class="col-xs-3 ">${map.staffName }</div>
									<div class="col-xs-1 "></div>
								</div>
								<div class="form-group">
									<label class="col-xs-2 control-label" for="birthday">出生年月:</label>
									<div class="col-xs-3 ">${map.birthday }</div>
									<div class="col-xs-1 "></div>
									<label class="col-xs-2 control-label" for="politicalStatus">政治面貌:</label>
									<div class="col-xs-3 ">${map.politicalStatus }</div>
									<div class="col-xs-1 "></div>
								</div>
								<div class="form-group">
									<label class="col-xs-2 control-label" for="email">所属部门:</label>
									<div class="col-xs-3">${map.orgName }</div>
									<div class="col-xs-1 "></div>
									<label class="col-xs-2 control-label" for="positions">职务:</label>
									<div class="col-xs-3">${map.positions }</div>
									<div class="col-xs-1 "></div>
								</div>
								<div class="form-group">
									<label class="col-xs-2 control-label" for="telphone">手机号码1:</label>
									<div class="col-xs-3">${map.telphone }</div>
									<div class="col-xs-1 "></div>
									<label class="col-xs-2 control-label" for="telphone1">手机号码2:</label>
									<div class="col-xs-3">${map.telphone1 }</div>
									<div class="col-xs-1 "></div>
								</div>
								<div class="form-group">
									<label class="col-xs-2 control-label" for="email">电子邮箱:</label>
									<div class="col-xs-3">${map.email }</div>
									<div class="col-xs-1 "></div>
									<label class="col-xs-2 control-label" for="incumbencyStatus">在职状态:</label>
									<div class="col-xs-3" >${map.incumbencyStatusName }</div>
									<div class="col-xs-1 "></div>
								</div>
								<div class="form-group">
									<label class="col-xs-2 control-label" for="portraitCode">照片:</label>
									<input class="form-control" name="map.portraitCode" id="portraitCode" value="${map.portraitCode }" type="hidden" placeholder="" />
										<div id="siderImg">
											<ul></ul>
										</div>
									<jsp:include page="/WEB-INF/page/common/File_ViewBigPic.jsp">
										<jsp:param name="imgShow" value="imgShow" />
									</jsp:include>
									<div class="col-xs-1"></div>
								</div>
								<div class="form-group">
									<label class="col-xs-2 control-label" for="comment">备注:</label>
									<div class="col-xs-9">${map.comment }</div>
									<div class="col-xs-1 "></div>
								</div>
							</div>
						</div>
						<div class="blockBorder">
							<div class="titleS">
								<strong>基本信息</strong>
							</div>
							<div class="tableCont" style="width: 90%;">
								<div class="form-group">
									<label class="col-xs-2 control-label" for=userAccount>用户账号:</label>
									<div class="col-xs-3 ">${map.userAccount }</div>
									<div class="col-xs-1 "></div>
								</div>
								
							</div>
						</div>
					</div>
				</td>
			</tr>
		</table>
	</form>
</body>
</html>
